//
//  NSString+BZJSONSerialization.m
//  BZFoundation
//
//  Created by 郭艺伟 on 14-10-30.
//  Copyright (c) 2014年 ND. All rights reserved.
//

#import "NSString+BZJSONSerialization.h"
#import "NSData+BZJSONSerialization.h"

@implementation NSString (BZJSONSerialization)
- (id)bz_jsonValue {
    return [self bz_jsonValueWithError:nil];
}

- (id)bz_jsonValueWithError:(NSError * __autoreleasing *)error {
	
    return [[self dataUsingEncoding:NSUTF8StringEncoding] bz_jsonValueWithError:error];
}
- (id)bz_jsonValueWithOptions:(NSJSONReadingOptions)options error:(NSError * __autoreleasing *)error {
    return [[self dataUsingEncoding:NSUTF8StringEncoding] bz_jsonValueWithOptions:options error:error];
}
@end
